package com.action;

import com.service.ServiceA;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AAction {

    @Autowired
    private ServiceA serviceA;

    @RequestMapping("/add")
    public String add(int x, int y)
    {
        System.out.println("到了action");
        String sum = serviceA.add(x,y);
        return sum;

    }

}
